<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.sql.*"%>
<%@ page import="com.oa.database.*"%>

<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gbk">

<script language="javascript">
 function sItem()
{
    var name;
    selected = "0";
    name = "";

    var f = document.neweflow.cfields;
    for(i =0;i<f.options.length;i++) {
        if (f.options[i].selected == true) {
            temp = f.options(i).text;
            name += ";" + temp;
        }
    }
    if (f.options.length > 0) {
        name += ";";
    }

    window.opener.document.formSave.descriptor.value = name;
    window.close();
}
</script>
<link rel="stylesheet" href="../skin/css/2003.css" type="text/css">
</HEAD>
<BODY >
<%
    String sTable = "";
    String sField = "";
    String sValue = "";
    String sFieldCond = "";
    String sValueCond = "";
    String sFieldSort = "";
    int sort = 0;
    String sCond  = "";
    ResultSet rs = null;

    DataConn dataConn = new DataConn();
    QueryData queryData = new QueryData(dataConn);
%>
<br>
  <table width="320" border="0" cellspacing="0" cellpadding="0" align="center">
   <form name="neweflow" method="post" action="descriptor.jsp">
    <tr>
      <td width="315">
        <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
          <tr>
            <td>
              <select name="cfields" size="15" style="width:300" multiple class="drpdwn">

              <%
                  sTable = "OA_DAZT";
                  sField = "ZTMC";
                  sFieldCond = "ZTBJ";
                  sValueCond = "0";
                  sFieldSort = "ZTID";
                  queryData.setRecordSet(sTable, sField, sFieldCond, sValueCond, sFieldSort, 1);
                  rs = queryData.getResultSet();
                  String name = "";
                  while (rs.next()) {
                      name = rs.getString("ZTMC");
              %>
                <option value="<%=name%>"><%=name%>&nbsp;</option>
              <%
                  }
              %>
              </select>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td align="center" width="315"> <br>
        <input type="button" name="Submit3" value="" class="buttonOk"   onClick="JavaScript:sItem();">
        <input type="reset" name="Submit32" value="" class="buttonReset">
      </td>
    </tr>
  </form>
</table>
<%
    try {
	if (dataConn != null) {
	    dataConn.close();
        }
    }
    catch(Exception ee) {}
%>
</BODY>

